function getActivityList (params) {
  return $axios({
    url: '/activity/page',
    method: 'get',
    params
  })
}

// 修改---启用禁用接口
function enableOrDisableActivity (params) {
  return $axios({
    url: '/activity/modifyStatus',
    method: 'put',
    data: { ...params }
  })
}

// 新增---添加员工
function addActivity (params) {
  return $axios({
    url: '/activity/add',
    method: 'post',
    data: { ...params }
  })
}

// 修改---添加员工
function editActivity (params) {
  return $axios({
    url: '/activity/modify',
    method: 'put',
    data: { ...params }
  })
}

// 修改页面反查详情接口
function queryActivityById (id) {
  return $axios({
    url: `/activity/${id}`,
    method: 'get'
  })
}

// 修改页面反查详情接口
function deleteActivity (id) {
  return $axios({
    url: `/activity/${id}`,
    method: 'delete'
  })
}

// 修改页面反查详情接口
function publishAct () {
  return $axios({
    url: '/activity/publishAct',
    method: 'get'
  })
}

function getUserActivityList (params) {
  return $axios({
    url: '/activity/getAct',
    method: 'post',
    data: {...params}
  })
}